//
//  PeopleFooterView.m
//  markmap
//
//  Created by 甘世清 on 2024/6/13.
//

#import "PeopleFooterView.h"

@implementation PeopleFooterView

- (void)SQ_UIViewForSelfView{
    [self addSubview:self.leftBtn];
    [self.leftBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(20);
            make.width.mas_equalTo(150);
            make.height.mas_equalTo(50);
            make.top.equalTo(self).offset(10);
    }];
    [self addSubview:self.rightBtn];
    [self.rightBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_right).offset(-20);
            make.width.mas_equalTo(150);
            make.height.mas_equalTo(50);
            make.top.equalTo(self).offset(10);
    }];
}
- (SQCustomButton *)leftBtn{
    if (!_leftBtn) {
        _leftBtn = [[SQCustomButton alloc]initType:SQCustomButtonLeftImageType imageSize:CGSizeMake(24, 24) midmargin:12];
        _leftBtn.layer.cornerRadius = 10;
        _leftBtn.layer.masksToBounds = YES;
        _leftBtn.image = SQGetImage(@"打招呼1");
        _leftBtn.SQBackimageView.image = SQGetImage(@"矩形");
        _leftBtn.SQBackimageView.contentMode = UIViewContentModeScaleAspectFill;
        _leftBtn.text = SQNSLocalString(@"打招呼聊天");
        _leftBtn.textColor = SQColor(@"#FFFFFF");
        _leftBtn.font = FONT_MEDIUM(14);
        _leftBtn.layer.cornerRadius = 12;
        _leftBtn.SQTouchBtn.mm_acceptEventInterval = 3;
    }
    return _leftBtn;
}
- (SQCustomButton *)rightBtn{
    if (!_rightBtn) {
        _rightBtn = [[SQCustomButton alloc]initType:SQCustomButtonLeftImageType imageSize:CGSizeMake(24, 24) midmargin:12];
        _rightBtn.layer.cornerRadius = 12;
        _rightBtn.layer.masksToBounds = YES;
        _rightBtn.image = SQGetImage(@"豆子1");
        _rightBtn.backgroundColor = UIColor.whiteColor;
        _rightBtn.text = SQNSLocalString(@"送金豆聊天");
        _rightBtn.textColor = SQColor(@"#FBB06D");
        _rightBtn.font = FONT_MEDIUM(14);
        _rightBtn.SQTouchBtn.mm_acceptEventInterval = 3;
    }
    return _rightBtn;
}
@end
